package es.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.util.Date;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/5/24  11:03
 * 描述:
 */
@Document(indexName = "log-info")
@Data
public class TestLogInfo {

    @Id
    private long id;

    @Field
    private String parameter;

    @Field(format = DateFormat.basic_date_time_no_millis)
    private Date createTime;



}
